To delete an organizational unit
Using the Windows interface
- Open Active Directory Users and Computers.
- In the console tree, right-click the organizational unit in which you want to delete.
Where?
- Active Directory Users and Computers
- domain node
- organizational unit
- Click Delete.
Notes
- XOX
- XOX
- If the selected organizational unit contains other objects, Active Directory Users and Computers prompts you to either continue or cancel the deletion. If you continue the deletion, all objects within the organizational unit will also be deleted.
Using a command line
- Open Command Prompt.
- Type:
dsrm OrganizationalUnitDN
Value |
Description |
OrganizationalUnitDN |
Specifies the of the organizational unit to be deleted. |
Notes
- XOX
- XOX
- Attempting to delete an organizational unit containing other objects will result in an error, unless the -subtree option is used. With the -subtree option, dsrm deletes both the selected organizational unit and any objects it contains.
- To view the complete syntax for this command, at a command prompt, type:
dsrm /?
or see Related Topics.
Related Topics